<?php
    $conf['db_hostname'] = 'localhost';
    $conf['db_username'] = 'root';
    $conf['db_password'] = '';
    $conf['db_name'] = 'internetines';
   /* $conf['address'] = ''; */
    
    $conn = mysql_connect($conf['db_hostname'], $conf['db_username'], $conf['db_password']) or die('Error connecting to mysql');
    mysql_select_db($conf['db_name']);
    mysql_set_charset('utf8');
    
   
    function isAdmin() {
        if (isset($_SESSION['metras']) && $_SESSION['metras']==1) {
            return true;
        }
        return false;
    }
    function isConsultant() {
        if (isset($_SESSION['metras'])) {
            if($_SESSION['metras']==1 || $_SESSION['metras']==2) {
                return true;
            }
        }
        return false;
    }    
?>